.rightMask{
  width: 600px;
  height: 100%; /* 跟随父容器高度 */
  background-color: #6d28d9; /* 统一柔和紫色 */
  position: relative;
  border-radius: 0 12px 12px 0; /* 仅右侧圆角 */
  overflow: hidden;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
}

/* 面具顶部标题 */
.maskTop {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 12px;
  position: relative;
}

.maskTop::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}

/* 面具选择容器 */
.maskSelect {
  position: absolute;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  height: calc(100% - 100px); /* 自适应剩余高度，替代固定400px */
  width: 90%;
  max-width: 400px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* 面具列表 */
.maskSelect ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

/* 单个面具项 */
.anymask {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.anymask:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
}

.anymask::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.anymask:hover::before {
  transform: scaleX(1);
}

/* 面具图标 */
.maskIcon {
  font-size: 36px;
  color: #6d28d9;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.anymask:hover .maskIcon {
  transform: scale(1.1) rotate(5deg);
}

/* 面具名称 */
.maskName {
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 面具选择区滚动条 */
.mask-select::-webkit-scrollbar {
  width: 6px;
}

.mask-select::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.mask-select::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.mask-select::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* 面具项点击效果 */
.anymask:active {
  transform: translateY(-2px);
}
